-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parser: add nowait keyword, add for update no wait grammar, and related error… #582
Conversation
Codecov Report
@@ Coverage Diff @@
## master #582 +/- ##
==========================================
+ Coverage 71.82% 71.83% +<.01%
==========================================
Files 32 32
Lines 7834 7836 +2
==========================================
+ Hits 5627 5629 +2
Misses 1676 1676
Partials 531 531
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the description in https://dev.mysql.com/doc/refman/8.0/en/select.html#idm140006656103232, it's more appropriate to make NOWAIT its own modifier rather than grouping FOR UPDATE NOWAIT
as a whole thing.
[FOR {UPDATE | SHARE} [OF tbl_name [, tbl_name] ...] [NOWAIT | SKIP LOCKED]
| LOCK IN SHARE MODE]]
|
we're currently groupint "FOR UPDATE" as a whole, and "SelectLockType" is defined as single |
LGTM |
@jackysp @tiancaiamao PTAL |
@cfzjywxk IMO it's better to turn To support |
@kennytm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
… code/msg
What problem does this PR solve?
support select for update nowait
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes